package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author wsh
 * 2021-10-04
 * 骑手实体bean
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_rider")
public class SysRider extends Model {
    private static final long serialVersionUID = 1L;

    /**
     * 骑手id
     */
    @TableId(value = "rider_id", type = IdType.AUTO)
    private Integer riderId;

    /**
     * 骑手编号
     */
    @TableField("code")
    private String code;

    /**
     * 骑手名字
     */
    @TableField("name")
    private String name;

    /**
     * 骑手头图
     */
    @TableField("pic")
    private String pic;

    /**
     * 骑手电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 骑手性别
     */
    @TableField("sex")
    private String sex;

    /**
     * 骑手状态
     */
    @TableField("state")
    private String state;

    /**
     * 骑手当前余额
     */
    @TableField("balance")
    private Integer balance;

    /**
     * 注册时间
     */
    @TableField("registrationTime")
    private String registrationTime;

    /**
     * 用户评级
     */
    @TableField("star")
    private String star;

    /**
     * 骑手接单级别，可根据级别来进行更多的接单提成
     */
    @TableField("level")
    private Integer level;
}
